package com.gitee.dolt.sms.properties;

import com.gitee.dolt.sms.enumeration.SmsType;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @author LYH
 */
@Data
@ConfigurationProperties(prefix = SmsProperties.PREFIX)
@NoArgsConstructor
public class SmsProperties {

    public static final String PREFIX = "dolt.sms";

    @NestedConfigurationProperty
    private SmsType smsType = SmsType.ALI;

    /**
     * 短信服务商应用公钥
     */
    private String accessKey;

    /**
     * 短信服务商应用私钥
     */
    private String securityKey;

    /**
     * 阿里云短信特有-区域id
     */
    private String regionId = "cn-hangzhou";

    /**
     * 短信服务商短信签名
     */
    private String signName;



}
